/**
 * Created by Silence on 2016/12/18.
 */
function changeNav(scrollTop) {
    if (scrollTop>10){
        $("#nav").css({'height':'5vh'});
        $('#nav li').css({'line-height':'5vh','font-size':'0.9vw'})
    }else{
        $("#nav").css({'height':'15vh'});
        $('#nav li').css({'line-height':'15vh',"font-size":'1.4vw'})
    }
}

function changeFooter(scrollTop) {
    var docH=$(document).height();
    var winH=$(window).height();
    if (scrollTop>=docH-winH){
        footerAppear();
    }else {
        footerHidden();
    }
}
function footerAppear() {
    $('#footer').css({'height': '15vh'});
    $('.icon li').css({'top':'-5vh'});
    $('.copyright').css({'top':'10vh'});
}
function footerHidden() {
    $('#footer').css({'height': '5vh'});
    $('.icon li').css({'top':'20vh'});
    $('.copyright').css({'top':'0'});
}